package com.yuanfeng.base.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.yuanfeng.base.dto.BaseImConfigDTO;
import com.yuanfeng.base.entity.BaseImConfigEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * @ClassName BaseImConfigMapper
 * @Description
 * @Author cyp
 * @Date 2023-06-26 13:27:14
 * @Version 1.0
 **/
@Mapper
public interface BaseImConfigMapper extends BaseMapper<BaseImConfigEntity> {

    /**
     * 查询im配置
     * @return
     */
    BaseImConfigEntity queryConfig();

    /**
     * 更新im配置
     * @return
     */
    Integer imConfigUpdate(@Param("param") BaseImConfigDTO imConfig);

    /**
     * 新增im配置
     * @return
     */
    Integer imConfigInsert(@Param("param") BaseImConfigDTO imConfig);

}
